with open('pi_digits.txt') as file_object: # 打开pi_digits.txt 作为文件对象
    for line in file_object: # 遍历文件对象
        print(line.rstrip()) # 打印每一行，去掉末尾的换行符